package com.hnichr.ump.common.assessment.entity;


import com.hnichr.ump.common.entity.UmpEntity;
import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "T_ASSESSMENT_TEST_DIMENSION",indexes = {@Index(columnList = "TEST_RESULT_ID_")})
@Schema(description = "测验维度结果表")
public class Dimension extends UmpEntity {
    @Id
    @Generator
    @Column(name = "ID_", updatable = false)
    @Schema(description = "ID")
    private String id;

    @Column(name = "TENANT_ID_")
    @Schema(description = "租户")
    @Dict(dicCode = "BEISEN_ACTIVITY_TENANT")
    private String tenantId;

    @Column(name = "TEST_RESULT_ID_")
    @Schema(description = "测验表id")
    private String testResultId;

    @Column(name = "NAME_")
    @Schema(description = "维度名称")
    private String name;

    @Column(name = "CENT_")
    @Schema(description = "维度得分")
    private String cent ;

    @Column(name = "TYPE_")
    @Schema(description = "维度类型")
    private String type;

    @Column(name = "TOTAL_CENT_")
    @Schema(description = "知识点总分")
    private String totalCent;
}
